<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<select name="select" id="name">
    <option value="0">1234</option>
    <option value="1">1235</option>
    <option value="2">1235</option>
</select>
<input type="file" name="file">
</body>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js">
    $("#name").change(function () {
        alert($(this).val());
        if($(this).value() == 2) {
           $("#name").trigger('click');
        }
    });
</script>
</html>